package com.example.pojo;

public class Comment {
    private int comId;
    private int userId;
    private String comContent;
    private String comTime;
    private int comLikes;
    private int newsId;

    public Comment(int comId, int userId, String comContent, String comTime, int comLikes, int newsId) {
        this.comId = comId;
        this.userId = userId;
        this.comContent = comContent;
        this.comTime = comTime;
        this.comLikes = comLikes;
        this.newsId = newsId;
    }

    public int getComId() {
        return comId;
    }

    public void setComId(int comId) {
        this.comId = comId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getComContent() {
        return comContent;
    }

    public void setComContent(String comContent) {
        this.comContent = comContent;
    }

    public String getComTime() {
        return comTime;
    }

    public void setComTime(String comTime) {
        this.comTime = comTime;
    }

    public int getComLikes() {
        return comLikes;
    }

    public void setComLikes(int comLikes) {
        this.comLikes = comLikes;
    }

    public int getNewsId() {
        return newsId;
    }

    public void setNewsId(int newsId) {
        this.newsId = newsId;
    }

}
